package com.lixinyue.exer;

public class Person {

    private int age;
    private String name;
    public Person()
    {
        age=18;
        name="lijin";
    }
    public void setAge(int i)
    {
        if(i>0&&i<130)
        {
            age=i;
        }
    }
    public int getAge()
    {
        return age;
    }

    public void setName(String n)
    {
        name=n;
    }
    public String  getName()
    {
        return name;
    }

}
